import app


class TrustAccountApi:
    def __init__(self):
        # 实名认证
        self.realname_url = app.BASE_URL + "/member/realname/approverealname"
        # 获取开户信息
        self.register_url = app.BASE_URL + "/trust/trust/register"

    # 实名认证
    def approve_realname(self, session, realname, card_id):
        param = {
            "realname": realname,
            "card_id": card_id,
        }
        return session.post(self.realname_url, data=param, files={"x": "xxxx"})

    # 获取开户信息
    def register(self, session):
        return session.post(self.register_url)
